
package com.uye.tattstemp.model.hibernate.domainobjects;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.uye.framework.util.StringUtils;
import com.uye.tattstemp.model.IPrincipal;

@SuppressWarnings("serial")
@Entity
@Table(name="Principals")
public class Principal implements IPrincipal{

	@Id
	private Long id;
	private String username;
	private String password;
	private Employee employeeDetails;
	
	public Long getId() {
		return id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getUsername() {
		return username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public void setEmployeeDetails(Employee employeeDetails) {
		this.employeeDetails = employeeDetails;
	}

	public Employee getEmployeeDetails() {
		return employeeDetails;
	}
	
	public String toString(){
		return StringUtils.toJSONString(this);
	}

	
}
